<template>
  <div>
    自己的input<input type="text" placeholder="姓名" v-model="selfName">
    自己的input<input type="text" placeholder="年龄" v-model="selfValue">
  </div>
</template>
<script>
// @ is an alias to /src
export default {
  name: 'XXX',
  props: ['value', 'xxx'],
  computed: {
    selfName: {
      get() {
        return this.xxx
      },
      set(v) {
        this.$emit('update:xxx', v)
      }
    },
    selfValue: {
      get() {
        return this.value
      },
      set(v) {
        this.$emit('input', v)
      }
    }
  },
  data() {
    return {

    }
  },
  methods: {
    fn(e) {
      // this.value = e.target.value
      this.$emit('input', e.target.value)
    }
  },
  components: {

  }
}
</script>
<style lang="less">
</style>